package com.qf.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName User
 * @Description TODO
 * @Author 86181
 * @Date 2022/9/13 14:21
 * @Version 1.0
 **/
public class User {
    private int id;

    private String nam;

    private String pwd;

    private Integer sex;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    public User(int id, String nam, String pwd, Integer sex, Date birth) {
        this.id = id;
        this.nam = nam;
        this.pwd = pwd;
        this.sex = sex;
        this.birth = birth;
    }

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNam() {
        return nam;
    }

    public void setNam(String nam) {
        this.nam = nam;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nam='" + nam + '\'' +
                ", pwd='" + pwd + '\'' +
                ", sex=" + sex +
                ", birth=" + birth +
                '}';
    }
}
